

package com.ninthgroup.service;

import com.ninthgroup.entity.User;
import com.ninthgroup.vo.Result;
import com.ninthgroup.vo.UserVo;

/**
 * @author ：1452863884@qq.com rcg
 * @date ：Created in 2022/10/13 20:49
 * @description：用户服务接口
 * @modified By：
 * @version: 1.0
 */
public interface UserService {


    /**
     * @param currentPage
     * @param pageSize
     * @param userVo
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:分页功能和条件查询
     * @create time: 2022/10/16 21:11
     */
    Result findByCondition(Integer currentPage, Integer pageSize, UserVo userVo);


    /**
     * @param userId
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:删除用户
     * @create time: 2022/10/16 21:08
     */
    Result deleteUserId(Integer userId);


    /**
     * @param user
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:添加用户
     * @create time: 2022/10/16 21:11
     */
    Result save(User user);


    /**
     * @param user
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:修改用户
     * @create time: 2022/10/16 21:12
     */
    Result update(User user);


    /**
     * @param username
     * @param realname
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:查询条件
     * @create time: 2022/10/16 21:12
     */
    Result select(String username, String realname);


    /**
     * @param user
     * @return int
     * @create by: 1452863884@qq.com rcg
     * @description:注册
     * @create time: 2022/10/21 12:38
     */
    int add(User user);



    /**
     * @create by: 1452863884@qq.com rcg
     * @description:登录
     * @create time: 2022/10/21 20:12
     * @param user
     * @return com.ninthgroup.entity.User
     */
    User findnameandpwd(User user);


    /**
     * @param uId
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:更新个人信息通过id
     * @create time: 2022/10/21 20:11
     */
    Result findOneById(Integer uId);
}

